﻿@model _1_6_2014_Entity_Framework.Models.IndexViewModel

@{
    ViewBag.Title = "Home Page";
}

<div class="jumbotron">
    <h1>ASP.NET</h1>
    <p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
    <p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more &raquo;</a></p>
</div>

<div class="row">
    <div class="col-md-4">
        <ul>
            @foreach(var order in Model.Orders)
            {
                <li>Name: @order.Name, Order Date: @order.OrderDate, Total: @order.Total</li>
              
            }

        </ul>
        <table class="tabel table-bordered table-striped">
            <tr>
                <th>Name on Order</th>
                <th>Order Date</th>
                <th>Total</th>
            </tr>
            @foreach(var orderItems in Model.Orders)
            {
                <tr>
                    <td>@orderItems.Name</td>
                    <td>@orderItems.OrderDate</td>
                    <td>@orderItems.Total</td>
                </tr>
            }

        </table>

 




    </div>
    <div class="col-md-4">
        <h2>Get more libraries</h2>
        <p>NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.</p>
        <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301866">Learn more &raquo;</a></p>
    </div>
    <div class="col-md-4">
        <h2>Web Hosting</h2>
        <p>You can easily find a web hosting company that offers the right mix of features and price for your applications.</p>
        <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301867">Learn more &raquo;</a></p>
    </div>
</div>